function setPaneHeight() {
	var h; // height
	if (!(window.innerHeight) ) {// ie
		var D=((document.documentElement.clientHeight)? document.documentElement : document.body);
		h = (D.clientHeight - 94);
	} else { // support for non-ie
		h = (window.innerHeight - 94);
	}
	document.id('page').style.height = h + 'px';
}

function window_resize() {
	setPaneHeight();
	sharpcontent.resize();
}

function resizePane(scrollId, contentId, offsetFunction) {
	var scrollPane = document.id(scrollId),
		contentPage = document.id(contentId);
	if (contentPage)
		contentPage.style.height = contentPage.getParent().getHeight() + 'px';
	if (scrollPane)
		scrollPane.style.height = offsetFunction(contentPage.getHeight()) + 'px';
}

var resizeContent = function() {
	resizePane('pane', 'content', function(height) { return height - 149});
};

var resizeHeaderlessContent = function() {
	resizePane('pane', 'content', function(height) { return height - 149});
};

var resizeFolder = function() {
	resizePane('scrollpane', 'block1', function(height) { return height - 85});
}